﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SistemaBastanteo.Dominio.Bastanteo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Verificar Poderes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <% if (TempData["TienePoder"] != null)
        { %>
           <b><script type="text/javascript">
                  alert('<%: TempData["TienePoder"] %>');
           </script></b>
        <%
        }%>
    <form id = "frmSearch" action="/VerificarPoder/Search" method="post">
        Ruc de Cliente : <input type="text" name="Ruc" size="15" /> 
        <input type="submit" value="Buscar" />
    </form>
     <% if (ViewData["Codigo"] != null)
        { %>
    Codigo      : <%: ViewData["Codigo"]%>
    Ruc         : <%: ViewData["Ruc"]%>
    Razon Social: <%: ViewData["RazonSocial"]%>
        <% Html.EnableClientValidation(); %>
        <form id = "frmSearch2" action="/VerificarPoder/Search2" method="post">
        <%: Html.ValidationSummary(true)%>
                <%: Html.Hidden("Codigo", ViewData["Codigo"])%>
                <%: Html.Hidden("Ruc", ViewData["Ruc"])%>
          <div class="editor-label">
                Representante
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoRepresentante", (IEnumerable<SelectListItem>)TempData["representantes"])%>
            </div>

            <div class="editor-label">
                Poder
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoPoder", (IEnumerable<SelectListItem>)TempData["poderes"])%>
            </div>
            <div class="editor-label">
                Importe
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Importe")%>
            </div>
        <input type="submit" value="Verificar Poder" />
    </form>

    
            <%} %>
    
   
</asp:Content>

